import request from '../request'

// 兴趣爱好相关接口
// 查询兴趣爱好列表
export const getHobbyList = () => {
	return request.get('/business/resumeHobbies/list')
}

// 获取兴趣爱好详细信息
export const getHobbyDetail = (id) => {
	return request.get(`/business/resumeHobbies/${id}`)
}

// 新增兴趣爱好
export const addHobby = (params) => {
	return request.post('/business/resumeHobbies', params)
}

// 修改兴趣爱好
export const updateHobby = (params) => {
	return request.put('/business/resumeHobbies', params)
}

// 删除兴趣爱好
export const deleteHobby = (ids) => {
	return request.delete(`/business/resumeHobbies/${ids}`)
}

// 根据个人信息生成兴趣爱好
export const generateHobby = (id) => {
	return request.get(`/business/resumeHobbies/generateOne/${id}`)
} 